package com.fh.service.ServiceCheck;

import com.fh.exception.ServiceException;
import com.fh.util.PageData;

/**
 * Created by tugou on 2017/9/24.
 */
public abstract class CheckHandler {

    private CheckHandler nextHandler;

    public void setNextHandler(CheckHandler handler){
        nextHandler = handler;
    }

    public final void handleRequest(PageData data) throws ServiceException,Exception{
        handle(data);
    }

    protected abstract void handle(PageData data) throws ServiceException,Exception;
}
